package com.zhixiang.xaec.dao.system.impl;

import java.util.List;

import org.springframework.stereotype.Repository;

import com.zhixiang.core.dao.impl.BaseDaoImpl;
import com.zhixiang.xaec.dao.system.DicDetailDao;
import com.zhixiang.xaec.entity.system.DicDetail;

@Repository
public class DicDetailDaoImpl extends BaseDaoImpl<DicDetail,Long> implements DicDetailDao
{

    @Override
    public DicDetail findByDicNoAndCodeNo(String dicNo, String codeNo)
    {
        List <DicDetail> list=findByHql(" FROM DicDetail WHERE dicType.dicNo=? and codeNo=?", new Object[]{dicNo,codeNo});
        if(list.size()>0){
            return list.get(0);
        }
        return null;
    
    }
   
}
